package com.ogawa.projectcommon.utils;

public class VersionUtils {


    //APP 对外展示规则为，1.0.13
    public static String versionToVersionName(String version){
        String versionName = version;
        try{
            String substring = version.substring(4, version.length());
            StringBuffer stringBuffer = new StringBuffer();
            stringBuffer
                    .append(substring.charAt(0))
                    .append(".")
                    .append(substring.charAt(1)).append(".")
                    .append(substring.charAt(2))
                    .append(substring.charAt(3))
            ;
            versionName = stringBuffer.toString();
        }catch (Exception e){
            e.printStackTrace();
        }
        return versionName;
    }

}
